'use strict';
var quitAndNotice = require('../../../../../module/quitAndNotice.js');
var app = getApp();

function saveForm() {
    wx.request({
        url: `https://wx.jingqi.ink/wxapp/form`,
        data: app.globalData.user_form,
        method: 'PUT',
        success: function(res) {
            //退出当前页面并提示保存成功
            quitAndNotice(1000, '../recruitForm', '保存成功');
            app.globalData.user_form = '';
        }
    })
}
module.exports = saveForm;